import config from "@/config"
import http from "@/utils/request"

export default {
  getTheatre: {
    url: `${config.API_URL}/cms/brand/cinema/list`,
    name: "获取剧场列表",
    get: async function(params){
      return await http.get(this.url,params)
    }
  },
  theatreDetail: {
    url: `${config.API_URL}/cms/brand/cinema/info/`,
    name: "获取剧场详情",
    get: async function(params){
      return await http.get(this.url+params)
    }
  },
  theatreUpload: {
    url: `${config.API_URL}/cms/brand/cinema/save`,
    name: "上传剧场内容",
    post: async function(data){
      return await http.post(this.url,data)
    }
  },
  theatreOperate: {
    url: `${config.API_URL}/cms/common/openAndClose/status/`,
    name: "开启关闭剧场",
    post: async function(data){
      return await http.post(this.url+data)
    }
  },
  del: {
    url: `${config.API_URL}/cms/creator/movie/`,
    name: "删除剧场数据",
    delete: async function(params){
        return await http.delete(this.url+params);
    }
  }
}